package cn.hackcloud.mybatis.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.hackcloud.mybatis.bean.Employee;

/**
 * 动态sql
 * 
 * @author Created by laijun on 2018/12/26
 */
public interface EmployerMapperDynamicSQL {

	/**
	 * @param employee 
	 * @return List<Employee>
	 */
	 List<Employee> getEmpsByConditionIf(Employee employee);

	 List<Employee> getEmpsByConditionTrim(Employee employee);

	 List<Employee> getEmpsByConditionChoose(Employee employee);

	 List<Employee> getEmpsByConditionForeach(List<Integer> ids);

	 void addEmpoyer(@Param("emps") List<Employee> emps);

	 void updateEmp(Employee employee);
}
